<!DOCTYPE html>
<html>
<script runat="server">
Sub ItemChanged(sender As Object, e As EventArgs)
lbl1.Text = "You selected " & rb1.SelectedItem.Text
End Sub
</script>
<body>
<form runat=server>
<asp:RadioButtonList id="rb1" AutoPostBack="true"
runat="server" OnSelectedIndexChanged="ItemChanged">
<asp:ListItem Text="Item 1" />
<asp:ListItem Text="Item 2" />
<asp:ListItem Text="Item 3" />
<asp:ListItem Text="Item 4" />
<asp:ListItem Text="Item 5" />
<asp:ListItem Text="Item 6" />
</asp:RadioButtonList>
<asp:Label id="lbl1" runat="server"/>
</form>
</body>
</html>